import {IInterviewInfo, IMessage, ISettingInterview} from "@/interface/interviewInfo";
import {cloneDeep} from "lodash";
import {formatDateTime} from "@/assets/ts/utils";

const SETTING_JSON: ISettingInterview = {
    resumeId: -1,
    company: '',
    post: '',
    requirement: '',
    interviewType: undefined,
    cameraPermit: false,
    cameraChoice: undefined,
    microphonePermit: false,
    microphoneChoice: undefined,
    generateReport: true,
    reportName: `新记录_${formatDateTime(new Date())}`,
    model_choice: 'universal',
    voice_speed: 1,
    universal_speaker_name: '',
    hoyo_model_name: '',
    minDialogueRounds: 25
}

const INTERVIEW_JSON : IInterviewInfo = {
    id: 0,
    status: '进行中',
    startTime: new Date(),
    Settings: cloneDeep(SETTING_JSON),
    Messages: []
}

const MESSAGE_JSON: IMessage = {
    id: 0,
    type: true,
    content: '# 这是一条消息模板，请确保 12^3^你修改了id与数组下标一致 \n $$ \\log(a) $$ \n `aaa`\n\n **aaa** \n ```\n' +
        'const SETTING_JSON: ISettingInterview = {\n' +
        '    resumeJson: null,\n' +
        '    company: \'\',\n' +
        '    post: \'\',\n' +
        '    requirement: \'\',\n' +
        '    interviewType: undefined,\n' +
        '    cameraPermit: false,\n' +
        '    cameraChoice: undefined,\n' +
        '    microphonePermit: false,\n' +
        '    microphoneChoice: undefined,\n' +
        '    generateReport: true,\n' +
        '    reportName: `新记录_${formatDateTime(new Date())}`,11111111111111111111111\n' +
        '    model_choice: \'universal\',\n' +
        '    voice_speed: 1,\n' +
        '    universal_speaker_name: \'\',\n' +
        '    hoyo_model_name: \'\'\n' +
        '}\n' +
        '```\n' +
        'https://github.com',
    referenceId: -1,
    audio_url: '',
    hideContent: false,
    showAsMarkdown: true,
    again: false,
    time: new Date(),
}



export {INTERVIEW_JSON, SETTING_JSON, MESSAGE_JSON};